Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(compiler): cache external reference resolution #21359

Closed
wants to merge 1 commit into from

Conversation

chuckjaz
Copy link
Contributor

@chuckjaz chuckjaz commented Jan 6, 2018

Cache reference resolution for external references as finding
the declaration of a symbol is expensive and does not change
for a program once created. This resolves a signficant performance
regression in the langauge service.

PR Type

What kind of change does this PR introduce?

[x] Bugfix

What is the current behavior?

The language service will often take up to 600ms to handle a request, such as hover or completions, it used to take under 100ms in v4.0

What is the new behavior?

The language service now takes roughly what it used to take in v4.0.

Does this PR introduce a breaking change?

[ ] Yes
[x] No

@mary-poppins
Copy link

You can preview c838585 at https://pr21359-c838585.ngbuilds.io/.

@mary-poppins
Copy link

You can preview cf2ebde at https://pr21359-cf2ebde.ngbuilds.io/.

@mary-poppins
Copy link

You can preview 8d9db53 at https://pr21359-8d9db53.ngbuilds.io/.

Cache reference resolution for external references as finding
the declaration of a symbol is expensive and does not change
for a program once created.

This resolves a signficant performance regression in the langauge
service.
@mary-poppins
Copy link

You can preview f78c6bc at https://pr21359-f78c6bc.ngbuilds.io/.

@kara kara added the area: core Issues related to the framework runtime label Jan 8, 2018
@chuckjaz chuckjaz added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Jan 9, 2018
@alexeagle
Copy link
Contributor

@chuckjaz
Copy link
Contributor Author

The failure a flaky test.

alexeagle pushed a commit that referenced this pull request Jan 10, 2018
Cache reference resolution for external references as finding
the declaration of a symbol is expensive and does not change
for a program once created.

This resolves a signficant performance regression in the langauge
service.

PR Close #21359
@alexeagle alexeagle closed this in e3e2fc0 Jan 10, 2018
leo6104 pushed a commit to leo6104/angular that referenced this pull request Mar 25, 2018
Cache reference resolution for external references as finding
the declaration of a symbol is expensive and does not change
for a program once created.

This resolves a signficant performance regression in the langauge
service.

PR Close angular#21359
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime cla: yes target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants